package com.esyoga.yoyoga.mapper;

import com.esyoga.yoyoga.pojo.TReview;
import com.esyoga.yoyoga.pojo.TReviewExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TReviewMapper {
    long countByExample(TReviewExample example);

    int deleteByExample(TReviewExample example);

    int deleteByPrimaryKey(Integer rId);

    int insert(TReview record);

    int insertSelective(TReview record);

    List<TReview> selectByExample(TReviewExample example);

    TReview selectByPrimaryKey(Integer rId);

    int updateByExampleSelective(@Param("record") TReview record, @Param("example") TReviewExample example);

    int updateByExample(@Param("record") TReview record, @Param("example") TReviewExample example);

    int updateByPrimaryKeySelective(TReview record);

    int updateByPrimaryKey(TReview record);
}